const newsContents = require("../model/newsContent.model ")
const { where, Op } = require("sequelize");

class NewsContent {
    // 创建
    async createNews(data) {
        // todo:写入数据库
        const res = await newsContents.create({
            ...data
        })
        return res
    }

    }



module.exports = new NewsContent();